package com.llsydn.data;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.llsydn.data.innerfile.InnerFileActivity;
import com.llsydn.data.network.NetworkActivity;
import com.llsydn.data.outfile.OutFileActivity;
import com.llsydn.data.sp.SpActivity;
import com.llsydn.data.sqlite.SqliteActivity;
import com.llsydn.hello.R;

public class DataMainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_data_main);
    }

    /**
     * SharedPreference存储
     */
    public void onClickSP(View view) {
        startActivity(new Intent(this, SpActivity.class));
    }

    /**
     * 内部文件存储
     */
    public void onClickIF(View view) {
        startActivity(new Intent(this, InnerFileActivity.class));
    }

    /**
     * 外部文件存储
     */
    public void onClickOF(View view) {
        startActivity(new Intent(this, OutFileActivity.class));
    }

    /**
     * 数据库存储
     */
    public void onClickDB(View view) {
        startActivity(new Intent(this, SqliteActivity.class));
    }

    /**
     * 网络存储存储
     */
    public void onClickNW(View view) {
        startActivity(new Intent(this, NetworkActivity.class));
    }

}
